<%@ Page PathInChannel="ajax/course/view/get_lesson{Ext}" RunAt="Execute" %>
<ali:Get ID="Lesson" Mark="Course" Object="Lesson" InnerID="Request.QueryString['ID']" />
{
	"id":"<%=Lesson[ID]%>",
	"innerId":<%=Lesson[InnerID]%>,
	"name":"<%=Lesson[Name]%>",
	"mediaType":"<%=Lesson[MediaType]%>",
	"url":"<%=Lesson[Url]%>",
	"duration":<%=Lesson[Duration]%>,
	"freeDuration":<%=Lesson[FreeDuration]%>,
	"description":"<%=Convert.ToString(Lesson[Description]).Replace("\\", "\\\\").Replace("\"", "\\\"").Replace("\n", "\\n").Replace("\r", "\\r").Replace("\t", "\\t")%>",
	"hitCount":"<%=Lesson[HitCount]%>"
	<%If Convert.ToBoolean(Request.QueryString["HasBuy"])%>
		<ali:List Mark="Course" Object="LessonStudy" Page="1" PageSize="1" Condition="CourseID=Lesson[CourseID] and LessonID=Lesson[ID] and UserID=User['ID']">
			<ali:Record>
				,"study":{"id":<%=InnerID%>,"value":<%=Value%>,"max":"<%=Max%>","startTime":"<%=StartTime%>","endTime":"<%=EndTime%>"}
			</ali:Record>
		</ali:List>
	<%EndIf%>
}